package com.design.movieticket.controller;

import com.design.movieticket.common.base.constant.Result;
import com.design.movieticket.common.base.constant.ResultStatus;
import com.design.movieticket.service.Impl.UserServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/hello")
@Api(tags = "测试")
public class HelloController {

    @Resource
    private UserServiceImpl userService;

    @ApiOperation("测试1")
    @GetMapping("/world")
    public Result hello(){
        return new Result(userService.list(),true,"666", ResultStatus.REQUEST_SUCCESS.getCode());

    }

}
